package cn.yunhe.zkclient;

import java.util.List;
import org.I0Itec.zkclient.ZkClient;
import org.junit.Test;

/**
 * 监控中心
 * 
 * @author YUNHE
 *
 */
public class monitor {
	@Test
	public void view(){
		ZkClient zk = new ZkClient("172.16.8.118:2181");
		List<String> providers = zk.getChildren("/dubbo/cn.yunhe.order/providers");
		List<String> consumers = zk.getChildren("/dubbo/cn.yunhe.order/consumers");
		System.out.println(providers.toString());  
        System.out.println(consumers.toString());
	}
}
